from OPT.Config import *
from OPT.Optimization import start_optimization
from OPT.Evaluation.Decoding import start_decode
from OPT.Evaluation.InternalBallistic import start_internal_ballistic_cal
from OPT.Evaluation.Analysis import start_analysis
from OPT.Evaluation.Neighbors import start_find_neighbor_in_psfd

dics=["dicA","dicB","dicC","dicD","dicE","dicF","dicG","dicH","dicI","dicJ","dicK","dicT1","dicT2","dicT3"]
for dic in dics:
    lr=0.001
    for index in [0,1,2,3,4]:
        define =make_define(dic,index,lr,"LGA")
        control_params, dead_dic = get_control_params(define,False)
        start_optimization(control_params,dead_dic)
        start_decode(control_params)
        start_internal_ballistic_cal(control_params)
        start_analysis(control_params)
        start_find_neighbor_in_psfd(control_params)

dics=["dicA_11","dicA_12","dicA_13","dicA_21","dicA_22","dicA_23","dicA_31","dicA_32","dicA_33"]
for dic in dics:
    define =make_define(dic,-1,0.0002,"LGA","Optimization")
    control_params, dead_dic = get_control_params(define,False)
    start_optimization(control_params,dead_dic)
    start_decode(control_params)
    start_internal_ballistic_cal(control_params)
    start_analysis(control_params)
    start_find_neighbor_in_psfd(control_params)